Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODExtension


CheckValid

The CheckValid method checks whether this extension object is valid and generates an exception if it is not valid.

void CheckValid ();
DISCUSSION
Every subclass of ODExtension must test the extension object's validity at the beginning of the implementation of each of its noninherited methods (except for the subclass-specific initialization method) by calling either this method or the IsValid method. Unlike the IsValid method, calling this method has no effect if this extension object is valid; otherwise it generates an exception.

If you want to ensure that you make calls only to a valid extension object, without generating an exception, then call the IsValid method instead.

EXCEPTIONS
kODErrInvalidExtension
This extension object is invalid and should not be used because its base object no longer exists.
SEE ALSO
The ODExtension::IsValid method (page 218).
"Implementing Extensions" on page 445 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help